<?php
#Template for Member Login
$page = (isset($page)) ? $page : 'login';
include "inc/local_data.php";
$form = (isset($using_real_env) && $using_real_env) ? $form : ((isset($data[$page])) ? $data[$page] : array());
if (empty($form)) exit;

?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <title><?php echo $form['title'];?></title>
		<?php include('inc/embed_top.php');?>
    </head>
    <body mlang="<?php echo $form['lang'];?>">
        <div id="login" class="<?php echo $form['lang'];?> login" data-role="page" data-theme="f" >
            <div class="ptit"><?php echo $form['login_title'];?><span class="cancel"><a href="<?php echo $form['button']['cancel']['link'];?>" rel="external"><?php echo $form['button']['cancel']['value'];?></a></span></div>
            <form id="loginForm" method="<?php echo $form['method'];?>" action="<?php echo $form['action'];?>" target="_top" autocomplete="off">
                <?php
                    foreach((array)$form['hidden'] as $key=>$val) {
                        echo '<input type="hidden" name="'.$key.'" value="'.$val.'" />';
                    }
                ?>
	    		<div class="input ui-corner-top">
                    <div class="hd"><label for="s-email"><?php echo $form['email']['title'];?></label></div>
	    			<!--div class="bd ui-icon ui-icon-delete hidden"></div-->
	    			<div class="ft"><input type="text" name="email" id="s-email" class="intel-text" data-theme="f" value="<?php echo
                        $form['email']['value'];?>" title="<?php echo $form['email']['note'];?>" /></div>
	    		</div>
	    		<div class="input ui-corner-bottom">
                    <div class="hd"><label for="s-password"><?php echo $form['pass']['title'];?></label></div>
	    			<!--div class="bd ui-icon ui-icon-delete hidden"></div-->
                    <div class="ft"><input type="password" name="password" id="s-password" class="intel-text" data-theme="f" value="<?php echo $form['pass']['value'];?>" /></div>
	    		</div>
                <div class="ui-cbtn"><input type="submit" value="<?php echo $form['button']['signin']['value'];?>" data-role="button" data-theme="f" /></div>
    		</form>
    		<div id="err-msg"></div>
    	</div>
		<?php include('inc/embed_bottom.php');?>
    </body>
</html>
